/** 权限相关路由，包含用户、角色等 **/

import Layout from '@/layout';

const rbacRouter = {
  path: '/rbac',
  component: Layout,
  redirect: '',
  name: 'Rbac',
  alwaysShow: true,
  meta: { title: '权限管理', code: 'RBAC-1000', icon: 'lock', noCache: false, i18nCode: 'rbac.rbac' },
  children: [
    {
      path: 'user',
      name: 'User',
      component: () => import('@/views/rbac/components/UserList'),
      meta: { title: '用户管理', code: 'RBAC-1010', noCache: false, i18nCode: 'rbac.user' }
    },
    {
      path: 'role',
      name: 'Role',
      component: () => import('@/views/rbac/components/RoleList'),
      meta: { title: '角色管理', code: 'RBAC-1020', noCache: false, i18nCode: 'rbac.role' }
    }
  ]
};

export default rbacRouter;
